﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Dissemination.MVC.Models
{
    public class AssessmentLecture
    {
        public AssessmentLecture(double? presentation, double? contents, double? questionsAnswered)
        {
            Presentation = presentation;
            Contents = contents;
            QuestionsAnswered = questionsAnswered;
        }

        public double? Presentation { get; set; }
        public double? Contents { get; set; }
        public double? QuestionsAnswered { get; set; }

        public double? Average
        {
            get
            {
                var list = new List<double?> { Presentation, Contents, QuestionsAnswered };
                return list.Average();
            }
        }
    }
}